package com.soft.javase.day09.hashset;

import java.util.HashSet;
import java.util.Set;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/29
 */
public class UniqueLetter {
    public static void main(String[] args) {
        String str = "aiodjl;hriWFUADJSV123UEHiowfjnivowe";

        Set<Character> uniqueLetter = new HashSet<>();

        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);
            if (Character.isLetter(c)) {
                uniqueLetter.add(c);
            }
        }

        System.out.println("不重复字母的数量是: " + uniqueLetter.size());
    }
}
